package com.newer.his.guahao.service;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.newer.his.common.entity.Registerrecord;
import com.newer.his.common.entity.Working;
import com.newer.his.common.mapper.PatientMapper;
import com.newer.his.common.mapper.RegisterRecordMapper;
import com.newer.his.common.mapper.WokingMapper;

@Service
public class GuahaoService {
	
	@Autowired
	RegisterRecordMapper registerRecordMapper;
	@Autowired
	PatientMapper patientMapper;
	@Autowired
	WokingMapper wokingMapper;
	
	public Registerrecord Guahao (){
		
		// 首先知道 病人信息    
	
		//排班信息     
		//插入挂号记录
		return null;
	}
	
     /**
      * 给定一个日期 查询今天所有的排班记录
      * @param date
      */
	public List<Working> getregisterrcorddate(java.sql.Date date) {
		
		return wokingMapper.getwokingoneDay(date);
		
		
	}
	
	public Registerrecord  Save() {
		return null;
		
	}
	

}
